package controllers;

import play.*;
import play.mvc.*;

import views.html.*;
import views.html.*;
import models.Task;


public class Application extends Controller {

    public static Result index() {
        return redirect(routes.Application.tasks());
    }

    public static Result tasks(){

        return ok(
            views.html.index.render(Task.all(), taskForm)
                );
    }

    public static Result newTask(){
        return TODO;
    }

    public static Result deleteTask(Long id){
        return TODO;
    }
}
